<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
	<meta http-equiv="Expires" content="0">
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="Cache-control" content="no-cache">
	<meta http-equiv="Cache" content="no-cache">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <meta name="renderer" content="webkit">
	<link href='/page/assets/css/boot/bootstrap.min.css' media='all' rel='stylesheet' type='text/css' />
	<link href='/page/assets/css/fileinput/fileinput.min.css' media='all' rel='stylesheet' type='text/css' />
	<link rel="stylesheet" href="/page/assets/css/select2/select2.min.css">
	<link href="/page/assets/css/dqq.css" rel="stylesheet">
<link href="//at.alicdn.com/t/font_574298_o3cvlwit9vm.css" rel="stylesheet">
	<script>
        //商品增加
		var _page="goodsManage_add";
	</script>
	<style>
		.w-e-menu{
			z-index: 2 !important;
		}
		.w-e-text-container{
			z-index: 1 !important;
		}
	</style>
</head>
<body class="inner_body" id="all_date">

	<div class="wrapper-content">
		<section>
			<h1>
				<span class="d_title"></span>
				<button class="btn btn-default d_back pull-right">
					<i class="iconfont icon-fanhui"></i>
					返回
				</button>
			</h1>
			<div class="panel panel-warning">
				<div class="panel-heading d_title">标题</div>
				<div class="panel-body">
					<form class="form validate-form" onsubmit="return false;">
						<div class="row">
							<div class="col-sm-3">
								<div class="form-group">
									<label class='control-label valited-required' for="name">商品名称</label>
									<input type='text' class="form-control" id="name" name="name" placeholder="请输入商品名称" title="请输入商品名称"  data-rule-required='true'/>
								</div>
							</div>
							<div class="col-sm-3">
								<div class="form-group">
									<label class='control-label valited-required' for="code">商品编号 <b style="color:#e4393c">(只允许输入纯数字)</b></label>
									<input type='number' class="form-control" id="code" name="code" placeholder="请输入商品编号" title="请输入商品编号"  data-rule-required='true'/>
								</div>
							</div>
							<div class="col-sm-3">
								<div class="form-group">
									<label class='control-label valited-required' for="imgUrl">商品头像</label>
									<input type='text' class="form-control" id="imgUrl" name="imgUrl" placeholder="请上传商品头像" title="请上传商品头像" data-rule-required='true'/>
								</div>
							</div>
							<div class="col-sm-3">
								<div class="form-group">
									<label class='control-label ' for="videoUrl">视频url</label>
									<input type='text' class="form-control" id="videoUrl" name="videoUrl" placeholder="请上传视频url" title="请上传视频url" />
								</div>
							</div>
							<div class="col-sm-3">
								<div class="form-group">
									<label class='control-label valited-required' for="integral">积分金额</label>
									<input type='text' class="form-control" id="integral" name="integral" placeholder="请上输入积分金额" title="请上输入积分金额" data-rule-required='true'/>
								</div>
							</div>
							<div class="col-sm-3">
								<div class="form-group">
									<label class='control-label valited-required' for="amount">兑换库存</label>
									<input type='text' class="form-control" id="amount" name="amount" placeholder="请输入兑换库存" title="请输入兑换库存" data-rule-required='true'/>
								</div>
							</div>
							<div class="col-sm-3">
								<div class="form-group">
									<label class='control-label valited-required' for="goodsOrder">排序</label>
									<input type='text' class="form-control" id="goodsOrder" name="goodsOrder" placeholder="请输入排序方式" title="请输入排序方式" data-rule-required='true'/>
								</div>
							</div>

							<div class="col-sm-3">
								<div class="form-group">
									<label class='control-label valited-required' for="showType">显示区域</label>
									<div>
										<select name="showType" class="select2" id="showType">
											<option value="3">都显示</option>
											<option value="2">只在积分商城显示</option>
										</select>
									</div>
								</div>
							</div>

							<div class="col-sm-3">
								<div class="form-group">
									<label style="display: block" class='control-label valited-required' for="buyUrl">购买地址</label>
									<!--<span class="btn btn-success btn-mini" id="btnBuyUrl">添加购买地址</span>-->
									<input style="display: none" type='text' class="form-control" id="buyUrl" name="buyUrl" placeholder="请输入购买地址" title="请输入购买地址" data-rule-required='true'/>
									<!--<input  type='text'  class=" addressBuy"  name="buyUrl" placeholder="请输入购买地址" title="请输入购买地址" data-rule-required='true'/>-->
									<span  class="addressBuy" style="cursor: pointer;color:#5cb85c;font-size: 20px;font-weight: bold;display: inline-block;width: 30px;height: 30px;text-align: center;line-height: 25px;border-radius:50%;border: 3px solid #5cb85c">+</span>

								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-sm-12">
								<div class="form-group">
									<label class='control-label' for="goodsDescribe">商品相关描述</label>
									<textarea name="goodsDescribe" id="goodsDescribe" cols="30" rows="3" placeholder="请输入图书相关描述"></textarea>
								</div>
							</div>
						</div>
						<div class="row">

							<div class="col-lg-6">
								<div id="businessParent"></div>
							</div>
							<div class="col-lg-6">
								<div id="idCardParent"></div>
							</div>
						</div>
						<label class='control-label valited-required' for="editor">商品详情</label>
						<div class="row">

							<div id="editor" >

							</div>
						</div>

						<div class="">
							<button type="button" class="btn btn-success submit" style="margin-top: 20px">提交商品信息</button>
						</div>
					</form>
				</div>
			</div>
		</section>
		<div class="dqq_blank"></div>

	</div>
	<!--购买地址弹框-->
	<div class="buyUrlModel">
		<div class="modal fade" id="buyUrlModel" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
			<div class="modal-dialog" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" id="exampleModalLabel">添加购买地址
							<span  class="addaddressBuy" style="cursor: pointer;color:#5cb85c;font-size: 20px;font-weight: bold;display: inline-block;width: 30px;height: 30px;text-align: center;line-height: 25px;border-radius:50%;border: 3px solid #5cb85c">+</span>
						</h4>
					</div>
					<div class="modal-body">
						<form>
							<div class="form-group" id="formAdd">
								<div class="row" >
									<div class="col-sm-5">
											<label class='control-label valited-required form-group' for="channelId">渠道名</label>
											<div>
												<select name="channelId" class="form-control form-group" style="height: 34px;line-height: 34px" id="channelId">
													<option value="0">淘宝</option>
													<option value="1">京东</option>
												</select>
											</div>
									</div>
									<div class="col-sm-7 addressWrapper ">
										<label for="address" class="control-label valited-required form-group">购买地址:</label>
										<div style="display: flex;justify-content: space-between">
											<input type="text" placeholder="请输入购买地址"  name="address" class="form-control form-group" style="width: 70%"/>
											<b style="cursor:pointer" class="deleteInput">❌</b>
										</div>
									</div>

							</div>
							</div>
						</form>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default" id="cancelJifen"  data-dismiss="modal">取消</button>
						<button type="button" class="btn btn-primary" id="submitJifen" >保存</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src='/page/assets/js/dqq_include.js' type='text/javascript'></script>
	<script src='/page/assets/js/boot/bootstrap.min.js' type='text/javascript'></script>
	<script src="/page/assets/js/fileinput/fileinput.js"></script>
	<script src="/page/assets/js/fileinput/locales/zh.js"></script>
	<script type="text/javascript" src="//unpkg.com/wangeditor/release/wangEditor.min.js"></script>
	<script src="/page/assets/js/select2/select2.min.js"></script>
	<script src='/page/assets/js/tpl/goodsManage.js' type='text/javascript'></script>
</body>
</html>